/*  mudmap - A tool to create and organize user side maps for MUD games
 *  Copyright (C) 2012  Neop (aka moemneop, email: mneop@web.de)
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful, but
 *  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 *  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
 *  for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, see <http://www.gnu.org/licenses/>.
 */

#include "properties.h"

namespace path{

#ifdef __linux__
string user_data_dir = string(getenv("HOME")) + "/.mudmap/";
#else
string user_data_dir = string(getenv("APPDATA")) + "/mudmap/";
#endif

string get_user_data_dir(){
    return user_data_dir;
}

string get_worlds_dir(){
    return user_data_dir + worlds_dir_str;
}

string get_available_worlds_file(){
    return get_worlds_dir() + "worlds";
}

void set_user_data_dir(string p){
    user_data_dir = p;
}

}
